﻿using SqlSugar;
using Zhp.SqlSugar.Entity;

namespace Zhp.Entity.Monitor
{
    [SugarTable("Logs")]
    public class Logs : RootEntity<Logs, long>
    {
        /// <summary>
        /// 日志等级
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public string LogLevel { get; set; }

        /// <summary>
        /// 日志产生时间
        /// </summary>
        [SugarColumn(IsNullable = false)]
        public DateTime TimeStamp { get; set; }

        /// <summary>
        /// 日志信息
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varcharmax,longtext,text,clob")]
        public string Message { get; set; }

        /// <summary>
        /// 日志模板
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varcharmax,longtext,text,clob")]
        public string MessageTemplate { get; set; }

        /// <summary>
        /// 日志
        /// </summary>
        [SugarColumn(IsNullable = true, ColumnDataType = "varcharmax,longtext,text,clob")]
        public string Properties { get; set; }
    }
}
